package com.example.springiocdemo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("Logger")
@RestController
public class LoggerController {
   private static Logger logger =  LoggerFactory.getLogger(LoggerController.class);
   @RequestMapping("/getLogger")
   public String logger(){
     logger.info("--------------要输出⽇志的内容----------------");
     return "打印⽇志";
   }
}